<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>managersList.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <logic:present name="managers">
  <p align="center">管理员信息</p>
  <table width="750" border="1"  align=center cellpadding="0" cellspacing="0">
  <tr><td align="center">管理员ID</td><td align="center">登录名称</td><td align="center">真实姓名</td><td colspan="2" align=center>备注</td><td colspan="3" align=center>操作</td></tr>
  
  <logic:iterate id="managers" name="managers">
  <tr>
  <td align="center" width=50 height=20 ><bean:write name="managers" property="id"></bean:write></td>
  <td align="center"><bean:write name="managers" property="adminName"></bean:write></td>
  <td align="center"><bean:write name="managers" property="realyName"></bean:write></td>
  <td colspan="2" align=center>
  <c:if test="${managers!=null}">
     <c:if test="${managers.beizhu!=null}">
      <c:set var="beizhuStr" value="${managers.beizhu}" />
      ${fn:substring(beizhuStr,0,12)}
     </c:if>
  </c:if>
  </td>
  <td align=center><html:link action="/admin/managers/list.do?method=deleteManagers" paramId="id" paramName="managers" paramProperty="id">删除</html:link></td>
  <td align=center><html:link action="/admin/managers/list.do?method=setUpdate" paramId="id" paramName="managers" paramProperty="id">修改</html:link></td>
  <td align=center><html:link action="/admin/popedom/popedomManageF.do?action=toupdate" paramId="userName" paramName="managers" paramProperty="adminName">设置权限</html:link></td>
  </tr>
  </logic:iterate>
  </table>
     <hr>
      <table align="center">
            <tr>
               <td colspan="8" align="right">
                      当前是第${curPage}页,总共${allPage}页&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <html:link action="/admin/managers/list.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=backPage" >上一页</html:link>
                      
                      <html:link action="/admin/managers/list.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=nextPage" >下一页</html:link>
                      
               </td>
                              
                              
            </tr>
           </table>
    </logic:present>
  </body>
</html:html>
